"""
URL configuration for chart app.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path
from chart import views

app_name = 'chart'
urlpatterns = [
    # AQI折线图
    path('AQI_line_chart/', views.AQILineChart.as_view(), name='AQI_line_chart'),
    # PM2.5变化趋势图
    path('trend_chart_of_pm2_5/', views.TrendChartOfPm2_5.as_view(), name='trend_chart_of_pm2_5'),
    # PM10变化趋势图
    path('trend_chart_of_pm10/', views.TrendChartOfPm10.as_view(), name='trend_chart_of_pm10'),
    # So2变化趋势图
    path('trend_chart_of_so2/', views.TrendChartOfSo2.as_view(), name='trend_chart_of_so2'),
    # No2变化趋势图
    path('trend_chart_of_no2/', views.TrendChartOfNo2.as_view(), name='trend_chart_of_no2'),
    # Co变化趋势图
    path('trend_chart_of_co/', views.TrendChartOfCo.as_view(), name='trend_chart_of_co'),
    # O3变化趋势图
    path('trend_chart_of_o3/', views.TrendChartOfO3.as_view(), name='trend_chart_of_o3'),
    # 一线城市AQI指标每月分布
    path('AQI_monthly_distribution/', views.AQIMonthlyDistribution.as_view(), name='AQI_monthly_distribution'),
    # 指标分布
    path('AQI_distribution/', views.AQIDistribution.as_view(), name='AQI_distribution'),
    # 空气污染物地图分布
    path('AQI_map_distribution/', views.AQIMapDistribution.as_view(), name='AQI_map_distribution'),
    # 空气质量指数趋势分析
    path('AQI_trend_analysis/', views.AQITrendAnalysis.as_view(), name='AQI_trend_analysis'),
    # 污染物相关性分析
    path('pollutant_correlation_analysis/', views.PollutantCorrelationAnalysis.as_view(), name='pollutant_correlation_analysis'),
    # 空气污染等级分布
    path('AQI_level_distribution/', views.AQILevelDistribution.as_view(), name='AQI_level_distribution'),
    # 空气污染浓度分布
    path('AQI_concentration_distribution/', views.AQIConcentrationDistribution.as_view(), name='AQI_concentration_distribution'),

]
